# Case 01 - Run in A Square Routine ## Purpose --- Program to run it in a square routine. ## Materials Required --- 1 × micro:bit XGO Robot Kit ## Hardware Connections --- Connect the micro:bit with the computer. ![](./images/microbit-xgo-robot-kit-22.png) ## Software Platform --- [Makecode](https://makecode.microbit.org/#) ![](./images/microbit-xgo-robot-kit-10.png) ## Program --- Add the XGO extensions. ![](./images/microbit-xgo-robot-kit-11.png) ![](./images/microbit-xgo-robot-kit-12.png) ![](./images/microbit-xgo-robot-kit-13.png) ![](./images/microbit-xgo-robot-kit-14.png) ## Program --- #### Code ![](./images/microbit-xgot-robot-kit-case01-out-of-the-square-01.png) Linkl [Run in A Square Routine](https://makecode.microbit.org/_3WaJt82pkbqd) You can also download it directly below:
## FAQ --- If XGO doesn't run a perfect square, please try adjusting the time and speed. ## Exploration --- How to program it to run in circles?